package com.cungmua.app.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * Created by kelvin.nguyen on 6/23/14.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class SKU implements Serializable {
    private int id;
    private String name;
    private int marketPrice;
    private int price;
    private String colorName;
    private String sizeName;
    private String smallImage;
    private int availableQuantity;
    private int buyLimitQuantity;
    private int buyMinQuantity;

    @JsonProperty("Id")
    public void setId(int id) {
        this.id = id;
    }

    @JsonProperty("Name")
    public void setName(String name) {
        this.name = name;
    }

    @JsonProperty("MarketPrice")
    public void setMarketPrice(int marketPrice) {
        this.marketPrice = marketPrice;
    }

    @JsonProperty("Price")
    public void setPrice(int price) {
        this.price = price;
    }

    @JsonProperty("ColorName")
    public void setColorName(String colorName) {
        this.colorName = colorName;
    }

    @JsonProperty("SizeName")
    public void setSizeName(String sizeName) {
        this.sizeName = sizeName;
    }

    @JsonProperty("SmallImage")
    public void setSmallImage(String smallImage) {
        this.smallImage = smallImage;
    }

    @JsonProperty("AvailbleQuantity")
    public void setAvailableQuantity(int availableQuantity) {
        this.availableQuantity = availableQuantity;
    }

    @JsonProperty("BuyLimitQuantity")
    public void setBuyLimitQuantity(int buyLimitQuantity) {
        this.buyLimitQuantity = buyLimitQuantity;
    }

    @JsonProperty("BuyMinQuantity")
    public void setBuyMinQuantity(int buyMinQuantity) {
        this.buyMinQuantity = buyMinQuantity;
    }

    public int getAvailableQuantity() {
        return availableQuantity;
    }

    public int getBuyLimitQuantity() {
        return buyLimitQuantity;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public int getMarketPrice() {
        return marketPrice;
    }

    public int getPrice() {
        return price;
    }

    public String getColorName() {
        return colorName;
    }

    public String getSizeName() {
        return sizeName;
    }

    public String getSmallImage() {
        return smallImage;
    }

    public int getBuyMinQuantity() {
        return buyMinQuantity;
    }
}

